package com.handsome.策略模式;

/**
 * @author niechun
 * @date 2023/3/27 20:05
 */
public class ToyDuck extends Duck{

    public ToyDuck() {
        super.setFlyBehavior(new NoFlyBehavior());
    }

    @Override
    public void display() {
        System.out.println("玩具鸭");
    }



}
